package com.example.myvideo.entity;

public class User {
    private String id; // 用户的唯一标识符
    private String username; // 用户名
    private String password; // 密码
    private String avatarPath; // 头像图片在本地存储系统中的路径

    // 无参构造函数，可能用于数据库操作
    public User() {}

    // 全参构造函数，用于创建用户对象
    public User(String id, String username, String password, String avatarPath) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.avatarPath = avatarPath;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public void setAvatarPath(String avatarPath) {
        this.avatarPath = avatarPath;
    }
}